<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        p{
            color: red;
        }
    </style>
</head>
<body>
    <p>
        p
        <span>span in p</span>
<!-- 样式继承 应用到后代元素 -->
<!-- 背景 布局相关的样式不会被继承 -->
    </p>
    
</body>
</html>